package BALL;

public class Ball {
    String n;
    String dx;
    String cl;
    String zl;
    String sh;
    public String getBallName() { return n; }
    public void setBallName(String ballName) { this.n = n; }
    public String getBallSize() { return dx; }
    public void setBallSize(String ballSize) { this.dx=dx;}
    public String getBallWeight() { return cl; }
    public void setBallWeight(String ballWeight) { this.cl = cl; }
    public String getBallMaterial() { return zl; }
    public void setBallMaterial(String ballMaterial) { this.zl = zl; }
    public String getBallSuitable() {
        return sh;
    }
    public void setBallSuitable(String ballSuitable) {
        this.sh = sh;
    }
    String 质量;
    String ballSuitable;
    String GetInfo(){
        return "我是"+n+"，我的直径是："+dx+"，" + "我的材料是："+cl+"，我的重量是"+zl+"，" + "我适合"+sh;
    }
    Ball (String ballName,String ballSize, String ballMaterial,String ballWeight,String ballSuitable){
        this.n=n;
        this.dx=dx;
        this.cl=cl;
        this.zl=zl;
        this.sh=sh;
    }
}

